package en.edu.scau.cmi.zhanzhiyong.carpter09;

import java.util.Arrays;

public class Example9_2 {
	public static void main(String args[]) {
		String a[] = {"melon", "apple", "pear", "banana"};
		String b[] = Arrays.copyOf(a, a.length);
		SortString.sort(a);
		
		for(String s:a) {
			System.out.println(" "+s);
		}
		
		System.out.println("");
		
		Arrays.sort(b);
		
		for(String s:b) {
			System.out.println(" "+s);
		}
	}
}
